#!/bin/bash

source src/conf/config.conf

cd $tftp_dir

echo "deb http://apt-mirror.sourceforge.net/ apt-mirror/" >> /etc/apt/sources.list
yes | apt-get install apt-mirror
apt-mirror
sh /var/spool/apt-mirror/var/clean.sh
ln -s /var/spool/apt-mirror/mirror/ftp.pt.debian.org/debian /var/www/mirrors/debian 
